package com.pug.zixun.commons.enums;

/**
 * @Description: User业务返回枚举
 * @Author: WengYu
 * @CreateTime: 2022/05/18 22:50
 */
public enum AdminUserResultEnum implements AdminResultInterface{

    USER_NULL_ERROR(100601, "用户不存在"),
    USER_SERVER_ERROR(100602, "服务出现故障"),
    USER_INPUT_USERNAME_ERROR(100603, "用户名或密码输入有误"),
    TOKEN_ERROR(100604, "token expired"),
    TOKEN_NOT_FOUND(100605, "token not found"),
    USER_FORBIDDEN_ERROR(100606, "用户异常,请联系管理员"),
    USER_NAME_NOT_EMPTY(100607, "账号不能是空"),
    USER_PWD_NOT_EMPTY(100607, "密码不能为空"),
    USER_LOGIN_UUID_EMPTY(100608, "会话过期了..."),
    TOKEN_ERROR_STATUS(100609, "token无效"),
    USER_LOGIN_SAME(100610, "你已经在别地方登录了");

    private Integer code;

    private String message;

    AdminUserResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
